package login

import (
	"226zy/common/proto/user"
	"226zy/service/server"
	"context"
)

type ServerUser struct {
	user.UnimplementedUserServer
}

func (s ServerUser) Login(ctx context.Context, in *user.LoginReq) (*user.LoginResp, error) {
	login, err := server.Login(in)
	if err != nil {
		return nil, err
	}
	return login, err
}
func (s ServerUser) List(ctx context.Context, in *user.ListReq) (*user.ListResp, error) {
	login, err := server.List(in)
	if err != nil {
		return nil, err
	}
	return login, err
}
